package com.mr.xie.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.mr.xie.mapper.AccountMapper;
import com.mr.xie.model.Account;
import com.mr.xie.service.AccountService;

@Service
@Transactional
public class AccountServiceImpl implements AccountService {
    @Autowired
    private AccountMapper accountMapper;

    @Override
    public List<Account> queryAccounts() throws Exception {
        return accountMapper.findAll();
    }
}
